package com.example.livingadminmaster.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

@TableName("dormitory_type")
public class DormitoryType {
    @TableId(value = "type_id",type = IdType.ASSIGN_ID)
    private long typeId;
    private String typeName;
    private int capacity;
    private String area;
    private String amenities;
    private boolean available;
    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE) //插入和更新时填充字段
    private LocalDateTime updateTime;
    public long getTypeId() {
        return typeId;
    }
    public String getTypeName() {
        return typeName;
    }
    public int getCapacity() {
        return capacity;
    }
    public String getArea() {
        return area;
    }
    public String getAmenities() {
        return amenities;
    }
    public boolean getAvailable() {
        return available;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }
    public void setTypeId(long typeId) {
        this.typeId = typeId;
    }
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }
    public void setArea(String area) {
        this.area = area;
    }
    public void setAmenities(String amenities) {
        this.amenities = amenities;
    }
    public void setAvailable(boolean available) {
        this.available = available;
    }
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
